#include"mStdio.h"


int main()
{
    FILE_* fp=fopen_("log.txt","w");
    if(fp==NULL)
    {
        perror("open");
        return 1;
    }
    const char* buf="hello world\n";
    int cnt=10;
    while(cnt)
    {
        fwrite_(buf,strlen(buf),fp);
        --cnt;
    }
    fclose_(fp);
    return 0;
}
